package com.itlaobing.dispatch.redirect;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/zhu/ge/liang")
public class ZhuGeLiangServlet extends HttpServlet {

    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        this.log("山人复姓诸葛名亮字孔明，躬耕南阳不求闻达于诸侯");

        response.setContentType("text/html ; charset=utf-8");

        PrintWriter out = response.getWriter();
        out.println("<div style='font-size:50 ;text-align:center ;font-weight:border ;color:skyblue'>");
        out.println("格老子的，老子带你上分");
        out.println("</div>");
    }
}
